Give cache type precedence over container type. (Liek the comment said...)
authorrobertl <robertl@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Fri, 12 Mar 2004 17:41:55 +0000 (17:41 +0000)
committerrobertl <robertl@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Fri, 12 Mar 2004 17:41:55 +0000 (17:41 +0000)
gpsbabel/util.c

index 4df42e8872e5980b7a80b2f0ac06d63d4c597fed..9166ca4c42d4af0e5d0d75c4e82990bd65827a11 100644 (file)
@@ -483,13 +483,6 @@ get_cache_icon(const waypoint *waypointp)
         * For icons, type overwrites container.  So a multi-micro will 
         * get the icons for "multi".
         */
-       switch (waypointp->gc_data.container) {
-               case gc_micro: 
-                       return "Micro-Cache";
-                       break;
-               default:
-                       break;
-       }
        switch (waypointp->gc_data.type) {
                case gt_virtual:
                        return "Virtual cache";
@@ -502,6 +495,13 @@ get_cache_icon(const waypoint *waypointp)
                default:
                        break;
        }
+       switch (waypointp->gc_data.container) {
+               case gc_micro: 
+                       return "Micro-Cache";
+                       break;
+               default:
+                       break;
+       }
        return NULL;
 }